import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/home/home.vue';
import Upload from '@/components/upload/upload.vue';
import Sign from '../components/sign/sign.vue';
import Login from '../components/login/login.vue';
import Study from '../components/study/study.vue';
import Buy from  '../components/buy/buy.vue';
import Data from '../components/data/data.vue';
import Course from '../components/course/course.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
        path: '/',
        name: 'home',
        component: Home,
    },
    {
      path: '/upload',
      name: 'upload',
      component: Upload,
  },
  {
    path: '/sign',
    name: 'sign',
    component: Sign,
},
{
  path: '/login',
  name: 'login',
  component: Login,
},
{
  path: '/study',
  name: 'study',
  component: Study,
},
{
  path: '/buy',
  name: 'buy',
  component: Buy,
},
{
  path: '/data',
  name: 'data',
  component: Data,
},
{
  path: '/course',
  name: 'course',
  component: Course,
},
  ]
})

export default router
